//a.cpp:
#include<iostream>
using namespace std;
int a;
void PrintA()
{
	cout<<a<<endl;
}

//b.cpp
extern int a;
void PrintA();
int main()
{
	a = 10;
	PrintA();
	return 0;
}